package com.itheima.d6_singleInstance;

public class Teacher {
    private static Teacher teacher;
    private Teacher(){

    }

    public static Teacher getTeacher() {
        if (teacher==null){
            teacher=new Teacher();
        }
        return teacher;
    }

}
